﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/main/AdminBase.Master" AutoEventWireup="true" CodeBehind="add_block.aspx.cs" Inherits="Com.Ompchina.Web.admin.cms.add_block" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cph_header" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cph_pagename" runat="server">
内容管理 &gt; <%= base.ConvertAction() + "广告位"%>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cph_pagelink" runat="server">
<li><a href="list_block.aspx?action=list<%= base.GetQueryStringAdd() %>">广告位列表</a></li>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="cph_main" runat="server">
<form id="frm_addBlock" runat="server">
<table class="table" cellpadding="0" cellspacing="0">
    <tr>
    	<th class="w180">区块位置</th>
        <td class="item w400"><CustomUI:SubTermDDL runat="server" ID="ddlTerm"  ParentTermID="-1" ParentTermLabel="block" ShowTips="true"></CustomUI:SubTermDDL></td>
        <td class="aitem">区块类别，必须选择</td>
    </tr>
    <tr>
    	<th class="w180">区块类型</th>        
        <td class="item w400"><CustomUI:BlockType runat="server" ID="ddlType"></CustomUI:BlockType></td>
        <td class="aitem">区块类型，必须选择</td>
    </tr>
    <tr>
    	<th class="w180">区块名称</th>        
        <td class="item w400"><asp:TextBox ID="txtName" runat="server" MaxLength="20" CssClass="ipttxt w360 h20"></asp:TextBox></td>
        <td class="aitem">区块名称，便于管理和识别，必须添加，最多20个字符</td>
    </tr>
    <tr>
    	<th class="w180">区块尺寸</th>        
        <td class="item w400"><asp:TextBox ID="txtSize" runat="server" MaxLength="10" CssClass="ipttxt w360 h20"></asp:TextBox></td>
        <td class="aitem">如果为flash广告，必须输入，格式形如：930x200</td>
    </tr>
    <tr>
    	<th class="w180">区块文件</th>        
        <td class="item w400"><CustomControl:FileUploader runat="server" ID="fuUploader" /></td>
        <td class="aitem">只做大小，不做尺寸校验，请务必保证对应广告位的图片尺寸正确。</td>
    </tr>
    <tr>
    	<th class="w180">排序</th>        
        <td class="item w400"><asp:TextBox ID="txtRank" runat="server" MaxLength="3" CssClass="ipttxt w360 h20" Text="-1"></asp:TextBox></td>
        <td class="aitem">区块排序，越大越在前，顺序为从上到下，从左到右。</td>
    </tr>
    <tr>
    	<th class="w180">区块链接</th>        
        <td class="item w400"><asp:TextBox ID="txtLink" runat="server" MaxLength="200" CssClass="ipttxt w360 h20"></asp:TextBox></td>
        <td class="aitem">区块链接，只对图片类型的区块有效，最多200个字符</td>
    </tr>
    <tr>
        <th class="w180">链接目标</th>        
        <td class="item w400"></td>
        <td class="aitem">链接目标，新窗口还是当前窗口</td>
    </tr>
    <tr>
    	<th class="w180">区块内容</th>
        <td class="item w400"></td>
        <td class="aitem">区块内容，只针对text文本类型的区块内容，其余类型不需要</td>
    </tr>
    <tr>
    	<th></th>
        <td class="aitem" colspan="2" style="text-indent:0;"><CKEditor:CKEditorControl Toolbar="Full" ID="ckeBlock" Skin="office2003" runat="server" Width="96%" Height="350"></CKEditor:CKEditorControl></td>
    </tr>
    <tr>
    	<th class="w180">是否上线</th>        
        <td class="item w400"><asp:CheckBox ID="cbOnline" runat="server" ></asp:CheckBox></td>
        <td class="aitem">选择上线，方可在前台显示</td>
    </tr> 
    <tr>
	    <th class="w180">上线预发布</th>        
        <td class="item w400"><asp:TextBox ID="txtOnline" runat="server" MaxLength="10" CssClass="ipttxt w100 h20" onclick="WdatePicker();"></asp:TextBox>&nbsp;&nbsp;
        <CustomUI:TimeHour runat="server" ID="ddlHour"></CustomUI:TimeHour>:
        <CustomUI:TimeMinute runat="server" ID="ddlMinute"></CustomUI:TimeMinute>
        </td>
        <td class="aitem">您可以指定新闻在固定的时间上线，精确到分钟</td>
    </tr>
    <tr>
    	<th class="w180">&nbsp;</th>
        <td class="item"><asp:Button ID="btnSave" runat="server" Text="保存" onclick="btnSave_Click" /></td>
        <td class="aitem">&nbsp;<asp:HiddenField ID="hfID" runat="server" Value="0" /></td>
    </tr>
    <tr>
        <th colspan="3">
        <%
            ExecuteStop = new DateTime();
            Response.Write("页面执行时间：" + (ExecuteStop - ExecuteStart).TotalMilliseconds + "毫秒");
        %>
        </th>
    </tr>
</table>
</form>
</asp:Content>
